<!DOCTYPE html>
<html>
<head>
  <style>
    .set {
      position: absolute;
      top: 8px;
    }
    .box {
      height: 100px;
      width: 100px;
      background-color: blue;
    }
    
    .hidden {
      visibility: hidden;
    }

    .container.hidden {
      outline: 4px solid red;
    }

    .visible {
      visibility: visible;
    }
    .should-be-hidden {
      background-color: red !important;
    }
    .should-be-visible {
      background-color: green !important;
    }
    
    .visible-indicator {
      background-color: green;
    }

    .hidden-indicator {
      background-color: red;
    }
  </style>
</head>
<body>
  <div class="set">
    <div class="hidden-indicator box"></div>
  </div>

  <div class="set">
    <div class="hidden container">
      <div id="target" class="hidden">
        <div class="visible box should-be-visible"></div>
      </div>
    </div>
  </div>
</body>
</html>
